<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<base href="<%=basePath%>"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登陆</title>
 <link rel="stylesheet" type="text/css" href="css/login.css">
 <script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>
<script type="text/javascript">
$(function(){
/* 	$("#submit").click(function(e){
		console.log("99999999999999");
		e.preventDefault();
		let uname=	document.querySelector("#uname");
		let upwd=document.querySelector("#upwd");
		$.ajax({
			type:"post",
			url:"login",
			data:{uname:uname,upwd:upwd},
			async:true,
			success:function(result){
				console.log(result);
			},error:function(result){
				console.log(result);
			}
		});
	}); */
/* 	let uname="unamiiiii";
	let upwd="sfsdfg";
	$.ajax({
		type:"post",
		url:"login",
		data:{uname:uname,upwd:upwd},
		async:true,
		success:function(result){
			console.log(result);
		},error:function(result){
			console.log(result);
		}
	}); */
});
</script>
</head>
<body>
    <div class="loginBg">
        <div class="warp">
            <img class="float_left" src="images/icon.png">
            <form class="float_right login" action="login" method="post">
                <h2>管理系统登录</h2>
                <input type="text" value="" name="uname"  autocomplete="off"  id="uname" required="required" maxlength="12" minlength="5" placeholder="请输入用户名">
                <input type="password" value="" name="upwd" autocomplete="off"  id="upwd"  maxlength="12"  minlength="5" required="required" placeholder="请输入密码">
                <p class="loginnotice">${msg}</p>
                <input type="submit"  id="submit" value="登&nbsp;&nbsp;录">
            </form>
        </div>
    </div>
</body>
</html>